package io.github.springstudent.bean;

import lombok.Data;

/**
 * @author zhouning
 * @date 2022/06/28 8:27
 */
@Data
public class StockInfo {

    private Integer batch;

    private Integer stockc;

    private Double pricec;

    private Integer stockd;

    private Double priced;

    private Integer stocke;

    private Double pricee;

    private Integer stockf;

    private Double pricef;

    private Double total;

    public Double getTotal() {
        return stockc * pricec + stockd * priced + stocke * pricee + stockf * pricef;
    }
}
